<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" %>
    <%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>

<table border="1"r>
<tr>
<td>员工姓名</td>
<td>员工性别</td>
<td>员工年龄</td>
<td>所属部门</td>
<td>所在职务</td>
<td>工龄</td>
<td>修改操作</td>
<td>删除操作</td>
</tr>
<c:forEach items="${employeeList}" var="employee" >
<tr>
<td>${employee.name }</td>
<td>${employee.sex}</td>
<td>${employee.age }</td>
<td>${employee.dapartment}</td>
<td>${employee.type}</td>
<td>${employee.year}</td>
 <td><a href="${pageContext.request.contextPath }/UpdateUiServlet?id=${employee.id}">修改</a></td>
<td><a href="${pageContext.request.contextPath }/DeleteEmployeeServlet?id=${employee.id}"> 删除</a></td>
</tr>
</c:forEach>
<tr>
 <td><a href="${pageContext.request.contextPath }/addEmployee.jsp">新增员工信息</a></td>
</tr>
</table>

</body>

</html>